<!DOCTYPE html>
<html>
<head>
<title>员工黑名单管理</title>
#parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn">
			<div class="form-group col-sm-2">
				<input type="text" class="form-control" v-model="q.name" @keyup.enter="query" placeholder="姓名">
			</div>
			<a class="btn btn-default" @click="query">查询</a>
			#if($shiro.hasPermission("empblacklist:save"))
			<a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			#end
			<!--#if($shiro.hasPermission("empblacklist:update"))-->
			<!--<a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>-->
			<!--#end-->
			#if($shiro.hasPermission("empblacklist:delete"))
			<a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			#end
			#if($shiro.hasPermission("empblacklist:unlock"))
			<a class="btn btn-primary" @click="unlockInit"><i class="fa fa-trash-o"></i>&nbsp;解锁</a>
			#end

		</div>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>
    
    <div v-show="!showList&&!showtable" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
			<div class="form-group">
			   	<div class="col-sm-2 control-label">姓名</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="empBlacklist.empName" readonly="readonly"  @click="popemployeename" placeholder="姓名"/>
			    </div>
			</div>
				<div class="form-group">
			   	<div class="col-sm-2 control-label">员工编号</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="empBlacklist.empNo" readonly="readonly" placeholder="员工编号"/>
			    </div>
				</div>
					<div class="form-group">
				<div class="col-sm-2 control-label">身份证号</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="empBlacklist.cardNo" readonly="readonly" placeholder="身份证号"/>
			    </div>
			</div>

			<!--<div class="form-group">
			   	<div class="col-sm-1 control-label">上岗状态</div>
			   	<div class="col-sm-2">
			      &lt;!&ndash;<input type="text" class="form-control" v-model="empBlacklist.empState" placeholder="员工状态"/>&ndash;&gt;

					<label class="radio-inline"><input type="radio" v-model="empBlacklist.empState" value="0"/>未上岗</label>
					<label class="radio-inline"><input type="radio" v-model="empBlacklist.empState" value="2"/>已离职</label>
			    </div>-->

			 <!--  	<div class="col-sm-1 control-label">是否锁定</div>
			   	<div class="col-sm-2">
			      <input type="text" class="form-control" v-model="empBlacklist.ifLock" placeholder="是否锁定"/>
			    </div>

			   	<div class="col-sm-1 control-label">锁定时间</div>
			   	<div class="col-sm-2">
			      <input type="text" id="lockTime" class="form-control" v-model="empBlacklist.lockTime"  readonly="readonly" />
			    </div>
			</div>-->

			<div class="form-group">
			   	<div class="col-sm-2 control-label">锁定原因</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="empBlacklist.lockReason" placeholder="锁定原因"/>
			    </div>
			</div>
			  <!-- 	<div class="col-sm-1 control-label">操作人(锁定)</div>
			   	<div class="col-sm-2">
			      <input type="text" class="form-control" v-model="empBlacklist.lockPerson" placeholder="操作人(锁定)"/>
			    </div>

			   	<div class="col-sm-1 control-label">解锁时间</div>
			   	<div class="col-sm-2">
			      <input type="text" id="unLockTime" class="form-control" v-model="empBlacklist.unLockTime"  readonly="readonly" />
			    </div>
			</div>

			<div class="form-group">
			   	<div class="col-sm-1 control-label">解锁原因</div>
			   	<div class="col-sm-2">
			      <input type="text" class="form-control" v-model="empBlacklist.unLockReason" placeholder="解锁原因"/>
			    </div>

			   	<div class="col-sm-1 control-label">解锁人</div>
			   	<div class="col-sm-2">
			      <input type="text" class="form-control" v-model="empBlacklist.unLockPerson" placeholder="解锁人"/>
			    </div>

			   	<div class="col-sm-1 control-label">备注</div>
			   	<div class="col-sm-2">
			      <input type="text" class="form-control" v-model="empBlacklist.remark" placeholder="备注"/>
			    </div>
			</div>-->

				<div class="form-group">
					<div class="col-sm-2 control-label"></div>
					<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
					&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
				</div>

		</form>
	</div>

	<div v-show="showtable" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">

			<div class="form-group">
				<div class="col-sm-2 control-label">解锁原因</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="empBlacklist.unLockReason" placeholder="解锁原因"/>
				</div>

			</div>

			<div class="form-group">
				<div class="col-sm-5 control-label"></div>
				<input type="button" class="btn btn-primary" @click="unlock" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>

	<!-- 弹出框 -->
	<div id="popLayer" style="display: none;padding:10px;">
		<table id="popGrid"></table>
		<div id="popGridPager"></div>
		<!--<ul id="menuTree" class="ztree"></ul>-->
	</div>

</div>

<!----------------------------人员派遣表窗口------------------------------------->
<div id="window" hidden="true">
	<div id="rrapppersondispatch">
		<div v-show="showList">
			<div class="grid-btn">
				<a class="btn btn-primary btn-sm" id="addpersondispatch">确定</a>
				<a class="btn btn-primary btn-sm" id="closepersondispatch">关闭</a>
			</div>
			<table id="jqGridpersondispatch"></table>
			<div id="jqGridPagerpersondispatch"></div>
		</div>
	</div>
</div>

<script src="${rc.contextPath}/js/empManage/empblacklist.js?_${date.systemTime}"></script>
</body>
</html>